# coding:utf-8

a = ['dewei', 'xiaomu', 'xiaohua', 'xiaoguo']
b = ['xiaohua', 'dewei', 'xiaoman', 'xiaolin']
c = ['xiaoguang', 'xiaobai', 'dewei', 'xiaoyuan']

a_set = set(a)
b_set = set(b)
c_set = set(c)

print(a_set, b_set, c_set)

"""
intersection(*others)
set & other & ...
返回一个新集合，其中包含原集合以及 others 指定的所有集合中共有的元素。
"""
result = a_set.intersection(b_set, c_set)
# print(result)
xiaotou = list(result)  # 需要将集合转换成列表，才能使用索引
print('{} 是 这个小偷'.format(xiaotou[0]))
